package com.newland.starpos.partner.bean.dto;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Getter
@Setter
public class UserRegistDTO {

    @Pattern(regexp = "^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\\d{8}$"
            , message = "手机号格式错误")
    private String phoneNumber;

    @Length(min = 6, max = 6, message = "验证码长度必须为6位")
    private String authCode;

    private String inviteCode;

    @NotBlank(message = "区域编码不能为空")
    private String regionalCode;
}
